﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Remoting.Messaging;

using MessageCallAspect.Inspector.Attributes;
using System.Diagnostics;

namespace MessageCallAspect.Inspector.Aspect.Trace
{
    [Conditional("DEBUG")]
    public class TraceAspectAttribute : MessageSinkAttribute
    {
        public TraceAspectAttribute()
        {
        }
        public override IMessageSink CreateMessageSink(IModuleContext context, object target, IMessageSink nextSink)
        {
            return new TraceMessageSink(context, target, nextSink);
        }
    }
}
